package com.zhoug.player3demo;

import android.content.Context;
import android.view.Gravity;
import android.view.WindowManager;

import com.zhoug.common3.utils.AppUtils;
import com.zhoug.zmui3.ZMUIAnimations;
import com.zhoug.zmui3.dialog.list.ZMUIListDialog;

import androidx.annotation.NonNull;

/**
 * @Author: zhoug
 * @Date: 2024-12-06
 * @Description:
 */
public class PlayDataListDialog  extends ZMUIListDialog<PlayData> {
    public PlayDataListDialog(@NonNull Context context) {
        super(context);
        setFullWidth(true);
        setAttributes(WindowManager.LayoutParams.MATCH_PARENT,WindowManager.LayoutParams.WRAP_CONTENT, Gravity.BOTTOM);
        setHeight(AppUtils.getScreenSize().y/2);
        setWindowAnimations(ZMUIAnimations.ANIM_DOWN);
    }

    @Override
    public String getText(PlayData itemData) {
        return itemData.getName();
    }

}
